home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
dev
/
gg
/
gengetopt-2.6.lha
/
gengetopt-2.6
/
doc
/
testdata
< prev
next >
Wrap
Text File
|
2002-03-02
|
2KB
|
49 lines
This one is from a C++ program
Try to launch me with some options
(type sample1 --help for the complete list)
For example: ./sample1 *.* --funct-opt
Here are the options you passed...
file: cmdline1.c
file: cmdline2.c
This is the integer you input: 10.
The flag option was given!
The flag is on.
Hello! Have a nice day! :-)
This one is from a C++ program
Try to launch me with some options
(type sample1 --help for the complete list)
For example: ./sample1 *.* --funct-opt
sample1 2.0
Usage: sample1 -iINT|--int-opt=INT [-h|--help] [-V|--version] -sSTRING|--str-opt=STRING -mINT|--my-opt=INT [--flag-opt] [-F|--funct-opt] --long-opt=LONG --def-opt=STRING [FILES]...
-h --help Print help and exit
-V --version Print version and exit
-sSTRING --str-opt=STRING A string option
-mINT --my-opt=INT Another integer option
-iINT --int-opt=INT A int option
--flag-opt A flag option (default=off)
-F --funct-opt A function option
--long-opt=LONG A long option
--def-opt=STRING A string option with default (default='Hello')
Here is the version
sample2 2.0
This is a simple test for gengetopt
sample2 2.0
Purpose:
this is just a test program for gengetopt
Usage: sample2 [OPTIONS]... [FILES]...
-h --help Print help and exit
-V --version Print version and exit
-sSTRING --str-opt=STRING A string option
-iINT --int-opt=INT A int option
-SSHORT --short-opt=SHORT A short option
-lLONG --long-opt=LONG A long option
-fFLOAT --float-opt=FLOAT A float option
-dDOUBLE --double-opt=DOUBLE A double option
-LLONGDOUBLE --long-double-opt=LONGDOUBLE A long double option
-yLONGLONG --long-long-opt=LONGLONG A long long option
-F --func-opt A function option
-x --flag-opt A flag option (default=off)